<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>SILVERCODERS DocToText: doctotext::Variant Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SILVERCODERS DocToText
   &#160;<span id="projectnumber">4.0.1512</span>
   </div>
   <div id="projectbrief">Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. Extracts metadata and annotations.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>doctotext</b></li><li class="navelem"><a class="el" href="classdoctotext_1_1Variant.html">Variant</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classdoctotext_1_1Variant-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">doctotext::Variant Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="variant_8h_source.html">variant.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae423d28bfd30cf384cc9f7df885c5e46"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae423d28bfd30cf384cc9f7df885c5e46"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#ae423d28bfd30cf384cc9f7df885c5e46">Variant</a> ()</td></tr>
<tr class="memdesc:ae423d28bfd30cf384cc9f7df885c5e46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates uninitialized object (represents null) <br/></td></tr>
<tr class="separator:ae423d28bfd30cf384cc9f7df885c5e46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a194ae8ab87125cb5c3b3a1a928baf31e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a194ae8ab87125cb5c3b3a1a928baf31e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a194ae8ab87125cb5c3b3a1a928baf31e">Variant</a> (const std::string &amp;value)</td></tr>
<tr class="memdesc:a194ae8ab87125cb5c3b3a1a928baf31e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates object which represents string. <br/></td></tr>
<tr class="separator:a194ae8ab87125cb5c3b3a1a928baf31e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab8dff2b6fa69a3f42840630b5755665"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab8dff2b6fa69a3f42840630b5755665"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#aab8dff2b6fa69a3f42840630b5755665">Variant</a> (const tm &amp;value)</td></tr>
<tr class="memdesc:aab8dff2b6fa69a3f42840630b5755665"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates object which represents date. <br/></td></tr>
<tr class="separator:aab8dff2b6fa69a3f42840630b5755665"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b0e6afea5534798cdea080989fb3ba5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b0e6afea5534798cdea080989fb3ba5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a5b0e6afea5534798cdea080989fb3ba5">Variant</a> (size_t value)</td></tr>
<tr class="memdesc:a5b0e6afea5534798cdea080989fb3ba5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates object which represents unsigned number. <br/></td></tr>
<tr class="separator:a5b0e6afea5534798cdea080989fb3ba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf6504bf6b60a4d05d31a190b475cf5b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf6504bf6b60a4d05d31a190b475cf5b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#acf6504bf6b60a4d05d31a190b475cf5b">Variant</a> (const <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> &amp;variant)</td></tr>
<tr class="memdesc:acf6504bf6b60a4d05d31a190b475cf5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of another <a class="el" href="classdoctotext_1_1Variant.html">Variant</a>. <br/></td></tr>
<tr class="separator:acf6504bf6b60a4d05d31a190b475cf5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75b39fdb8ae97110e6f3c270069bb6ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75b39fdb8ae97110e6f3c270069bb6ff"></a>
<a class="el" href="classdoctotext_1_1Variant.html">Variant</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> &amp;variant)</td></tr>
<tr class="separator:a75b39fdb8ae97110e6f3c270069bb6ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02714990f51e839f35e56a72fbe05762"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02714990f51e839f35e56a72fbe05762"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a02714990f51e839f35e56a72fbe05762">setValue</a> (size_t number)</td></tr>
<tr class="memdesc:a02714990f51e839f35e56a72fbe05762"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets unsigned number value. From this moment, <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents unsigned number. <br/></td></tr>
<tr class="separator:a02714990f51e839f35e56a72fbe05762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79a26e3a594fec172538cf55ad42a3fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79a26e3a594fec172538cf55ad42a3fe"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a79a26e3a594fec172538cf55ad42a3fe">setValue</a> (const tm &amp;date_time)</td></tr>
<tr class="memdesc:a79a26e3a594fec172538cf55ad42a3fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets date value. From this moment, <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents date. <br/></td></tr>
<tr class="separator:a79a26e3a594fec172538cf55ad42a3fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a125f8063b40cd9a8d9cb4421d94c6efb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a125f8063b40cd9a8d9cb4421d94c6efb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a125f8063b40cd9a8d9cb4421d94c6efb">setValue</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a125f8063b40cd9a8d9cb4421d94c6efb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets string value. From this moment, <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents string. <br/></td></tr>
<tr class="separator:a125f8063b40cd9a8d9cb4421d94c6efb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9d7c67ad0897e704ab2ce888d2ebc31"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9d7c67ad0897e704ab2ce888d2ebc31"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#aa9d7c67ad0897e704ab2ce888d2ebc31">isEmpty</a> () const </td></tr>
<tr class="memdesc:aa9d7c67ad0897e704ab2ce888d2ebc31"><td class="mdescLeft">&#160;</td><td class="mdescRight">If <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> has not been initialized with number/date/string, this method returns value true. <br/></td></tr>
<tr class="separator:aa9d7c67ad0897e704ab2ce888d2ebc31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02ad8f59b776547ebc5b90dd8c1fc28a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02ad8f59b776547ebc5b90dd8c1fc28a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a02ad8f59b776547ebc5b90dd8c1fc28a">isString</a> () const </td></tr>
<tr class="memdesc:a02ad8f59b776547ebc5b90dd8c1fc28a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents a string. <br/></td></tr>
<tr class="separator:a02ad8f59b776547ebc5b90dd8c1fc28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada72f7773bf1cee62039db0fdb3ec72e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada72f7773bf1cee62039db0fdb3ec72e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#ada72f7773bf1cee62039db0fdb3ec72e">isNumber</a> () const </td></tr>
<tr class="memdesc:ada72f7773bf1cee62039db0fdb3ec72e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents a number. <br/></td></tr>
<tr class="separator:ada72f7773bf1cee62039db0fdb3ec72e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1a9e7dff1b84d89851b857ea064d1ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1a9e7dff1b84d89851b857ea064d1ea"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#ac1a9e7dff1b84d89851b857ea064d1ea">isDateTime</a> () const </td></tr>
<tr class="memdesc:ac1a9e7dff1b84d89851b857ea064d1ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> represents a date. <br/></td></tr>
<tr class="separator:ac1a9e7dff1b84d89851b857ea064d1ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9b5ab82017e207d04e2ce67dc7c570f"><td class="memItemLeft" align="right" valign="top">const tm &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#af9b5ab82017e207d04e2ce67dc7c570f">getDateTime</a> () const </td></tr>
<tr class="separator:af9b5ab82017e207d04e2ce67dc7c570f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ccfbc70a08ce53cbd82c58052ba5508"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a2ccfbc70a08ce53cbd82c58052ba5508">getString</a> () const </td></tr>
<tr class="separator:a2ccfbc70a08ce53cbd82c58052ba5508"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9da2512a4a9a5f6d57065e48a952a61c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoctotext_1_1Variant.html#a9da2512a4a9a5f6d57065e48a952a61c">getNumber</a> () const </td></tr>
<tr class="separator:a9da2512a4a9a5f6d57065e48a952a61c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classdoctotext_1_1Variant.html">Variant</a> is an object which can represent unsigned number, date or string. Uninitialized object represents 'null'. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af9b5ab82017e207d04e2ce67dc7c570f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const tm&amp; doctotext::Variant::getDateTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>If <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> is a date, this method returns const reference to tm object. But if it is not a date, struct tm can be filled with undefined numbers (usually zeros) </p>

</div>
</div>
<a class="anchor" id="a9da2512a4a9a5f6d57065e48a952a61c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t doctotext::Variant::getNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>If <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> is a number, then number which is inside this object is returned. In other cases, returned number may be undefined (usually 0). </p>

</div>
</div>
<a class="anchor" id="a2ccfbc70a08ce53cbd82c58052ba5508"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* doctotext::Variant::getString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns string value. If <a class="el" href="classdoctotext_1_1Variant.html">Variant</a> is a string, then string is returned (simple). But if variant represents number or a date, proper value is converted to the string. If variant has no value (represents null), empty string is returned. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="variant_8h_source.html">variant.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
